#include <stdio.h>
#include "../components/my_driver/nvs_driver.h"
#include "../components/my_driver/spi_driver.h"
#include "../components/logic_handle/task_app_logic.h"
#include "../components/key/task_sensor_dect.h"
#include "../components/logic_handle/light_effect_handle.h"
#include "../components/cache_RT/cache_handle.h"
#include "../components/uart_handle_module/uart_logic_handle.h"
#include "../components/cache_RT/report_handle.h"
char buf_device[17]="3001000000000001";

void app_main(void)
{
    extern char blufi_device_name[10];
    strcpy(blufi_device_name,PROJECT_NAME);
    driver_nvs_init(); //初始化nvs
    device_spi1_init(); //初始化spi1
    device_spi2_init();
    cache_init();//初始化解析函数
    init_uart_handle();//初始化
    task_sensor_dectect_init(); //初始化外设驱动
    task_light_effect_dazzling_init(); //灯效运算程序
    task_app_logic_init();//主逻辑处理部分
    task_iot_report_init(); //上报状态
}
